<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta name="description" content="mô tả website">
		<meta name="keywords" content="những từ khóa của website bạn">
		<meta name="author" content="tác giả">
		<link rel="shortcut icon" href="img/front/favicon.ico">
		<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,600&subset=latin,vietnamese,latin-ext' rel='stylesheet' type='text/css'>
		<title><?php echo $this->pageTitle;?></title>
		<!-- Remove style skype on IE -->
		<meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE" />
		<meta content="telephone=no" name="format-detection" />

		<link rel="stylesheet" type="text/css" media="screen" href="<?php echo Yii::app()->theme->baseUrl;?>/css/common.css" />
		<!--[if lt IE 9]>
		<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
		<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
		<![endif]-->
	</head>
	<body class="page-view-demo-image">
		<div id="wrapper">
			<div class="header-view-demo-theme">
				<h1 class="wrap-logo"><a href="<?php echo PIUrl::createUrl('/home/');?>" class="icon-ib logo text-hide" style="background:url('<?php
						echo yii::app()->baseUrl."/upload/images/".$this->arrSystem[0]->logo;
					?>') no-repeat scroll center top / cover  rgba(0, 0, 0, 0)">Kovo.vn</a></h1>
				<a href="#" class="btn-contact-buy">Liên hệ mua</a>
				<a href="<?php
					echo (!empty($theme)) ? PIUrl::createUrl('/home/themeDetail', array("alias"=> $_GET['alias'])) : PIUrl::createUrl('/home/theme');
				?>" class="text-hide icon-ib icon-close-theme">Close</a>
			</div>
			<?php if(!empty($theme)){ ?>
				<div class="thumbnails">
					<a href="#">
						<img class="thumbImage" alt="<?php echo $theme->image; ?>" src="<?php echo getImage($theme->image, 110, 53, 1); ?>">
					</a>
					<?php if(!empty($arrImageTheme)){ ?>
						<?php foreach($arrImageTheme as $image){ ?>
							<a href="#" >
								<img class="thumbImage" alt="<?php echo $image->image; ?>" src="<?php echo getImage($image->image, 110, 125); ?>">
							</a>
						<?php } ?>
					<?php } ?>
				</div>
				<div class="detail">
					<h1 class="title-lg description">Giao diện</h1>
					<div class="view-fullsize">
						<img class="imageFull" src="<?php 
							$path = yii::app()->basePath."/../upload/images/".$theme->image;
							if(file_exists($path)){
								echo yii::app()->baseUrl."/upload/images/".$theme->image;
							}else echo yii::app()->baseUrl."/upload/images/noname.jpg";
						?>" alt="">
					</div>
				</div>
			<?php }else echo translate("Không tìm thấy giao diện!"); ?>

		</div>
		<script>
			$(document).ready(function(){
				$(".thumbImage").click(function(){
					var src = "<?php echo yii::app()->baseUrl."/upload/images/"; ?>"+$(this).attr("alt");
					$(".imageFull").attr("src",src);
					return false;
				});
			})
		</script>
		<style>
			.imageFull{
				max-width: 400px;
				max-height: 700px;
			}
		</style>
		<!-- Script -->
		<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl;?>/js/jquery-1.8.2.min.js"></script>
		<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl;?>/js/jquery.smoothscroll.min.js"></script>
		<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl;?>/js/owl.carousel.min.js"></script>
		<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl;?>/js/jquery.easydropdown.min.js"></script>
		<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl;?>/js/classie.js"></script>
		<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl;?>/js/common.js"></script>
	</body>
</html>